package com.sainthigh.androiddemos;

import com.sainthigh.ip.IPActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity implements OnClickListener{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		initView();
	}

	private void initView() {
		this.findViewById(R.id.demos_btn1_iputils).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch(v.getId()) {
		case R.id.demos_btn1_iputils:
			Intent intent = new Intent(this, IPActivity.class);
			this.startActivity(intent);
			break;
		default:
			break;
		}
	}


	
}
